PATCH
/
public
/
v1
/
toppie
/
campaigns
/
{campaign-id}
curl --request PATCH \
  --url https://api.topsort.com/public/v1/toppie/campaigns/{campaign-id} \
  --header 'Content-Type: application/json' \
  --data '{
  "budget": 10000000000,
  "endDate": "2023-11-07T05:31:56Z",
  "isActive": true,
  "name": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "targetRoas": 123,
  "targets": {
    "add": [
      "<string>"
    ],
    "remove": [
      "<string>"
    ]
  }
}'
{
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agencyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "budget": 123,
  "budgetPeriod": "daily",
  "createdAt": "2023-11-07T05:31:56Z",
  "currencyCode": "USD",
  "endDate": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isActive": true,
  "name": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "targetRoas": 10.25,
  "targetType": "brand"
}

Path Parameters

campaign-id
string
required

The ID of the campaign.

Body

application/json

Agency campaign fields to be updated

Response

200
application/json
Successful Response

The response is of type object.